package com.itheima.mapper;

import com.itheima.pojo.Order;
import com.itheima.pojo.OrderDetails;
import com.itheima.pojo.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface OrderMapper {
    /*
    *   查询所有订单
    * */
    List<Order> getOrders();
    OrderDetails getOrderDetailsById(int id);
    List<Product> getOrderAndProducts(int id);
}
